﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="dept_new.aspx.cs" Inherits="AnyOffice.general.system.dept.dept_new" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>部门/成员单位管理</title>				
		<script src="/aspnet_client/core/function.js"></script>
		<script>
function CheckForm()
{
	if(document.Form1.txtDeptNo.value == "")
   {
	 alert("部门排序号不能为空！");
	 document.Form1.txtDeptNo.focus();
	 return (false);
   }
   
   	if(!checkIsInteger(document.Form1.txtDeptNo.value))
   {
	 alert("用户排序号必须为整数！");
	 document.Form1.txtDeptNo.focus();
	 return (false);
   }
   
   if(document.Form1.txtDeptName.value == "")
   {
	 alert("部门名称不能为空！");
	 document.Form1.txtDeptName.focus();
	 return (false);
   }   
   return true;
}
		</script>
	</HEAD>
	<body class="bodycolor" style="padding-top:0;" topmargin="5">
		<form id="Form1" method="post" runat="server">
          <div class="main_div">
			<asp:Panel id="pnlMain" runat="server">
				<TABLE class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
					<TR>
						<TD class="tab_ti">
								新建部门/成员单位
						</TD>
					</TR>
				</TABLE>
				<TABLE class="tab_pub" cellSpacing="0" cellPadding="0" width="500" align="center" border="0">
					<TR>
						<TD class="ta_bg" noWrap>部门排序号：</TD>
						<TD class="ta_txt" noWrap>
							<asp:TextBox id="txtDeptNo" runat="server" Columns="6" CssClass="BigInput" MaxLength="4"></asp:TextBox>用于处于同一层次部门的排序，以及用户列表的排序
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg" noWrap>部门名称：</TD>
						<TD class="ta_txt" noWrap>
							<asp:TextBox id="txtDeptName" runat="server" Columns="25" CssClass="BigInput" MaxLength="50"></asp:TextBox>
							<asp:Label id="litDeptName" runat="server" ForeColor="Red"></asp:Label></TD>
					</TR>
					<TR>
						<TD class="ta_bg" noWrap>电话：</TD>
						<TD class="ta_txt" noWrap>
							<asp:TextBox id="txtTelNo" runat="server" Columns="25" CssClass="BigInput" MaxLength="50"></asp:TextBox>
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg" noWrap>传真：</TD>
						<TD class="ta_txt" noWrap>
							<asp:TextBox id="txtFaxNo" runat="server" Columns="25" CssClass="BigInput" MaxLength="50"></asp:TextBox>
						</TD>
					</TR>
					<TR>
						<TD class="ta_bg" noWrap>上级部门：</TD>
						<TD class="ta_txt">
							<asp:DropDownList id="ddlParentDept" runat="server" CssClass="BigSelect"></asp:DropDownList></TD>
					</TR>
                    <tr>
                        <td class="ta_bg" nowrap="nowrap">部门主管：
                        </td>
                        <td class="ta_txt">
                            <asp:TextBox ID="txtManagerName" runat="server" Columns="35" CssClass="BigStatic fl"
                                MaxLength="50"></asp:TextBox>
                            <asp:HiddenField ID="ManagerId" runat="server" />
                            <INPUT class="bnt_Add fl" style="width:50px; display:inline-table;" title="添加" onClick="user_select('ManagerId','txtManagerName')" type="button" value="添加" name="button">
								<INPUT class="bnt_Del fl" style="width:50px; display:inline-table;" title="清空" onClick="clear_double('ManagerId','txtManagerName')" type="button" value="清空" name="button"><br />本栏目选填
                        </td>
                    </tr>
                    <tr>
                        <td class="ta_bg" nowrap="nowrap">上级主管领导：
                        </td>
                        <td class="ta_txt">
                            <asp:TextBox ID="txtLeader1Name" runat="server" Columns="35" CssClass="BigStatic fl"
                                MaxLength="50"></asp:TextBox>
                            <asp:HiddenField ID="Leader1Id" runat="server" />
                            <INPUT class="bnt_Add fl" style="width:50px; display:inline-table;" title="添加" onClick="user_select('Leader1Id','txtLeader1Name')" type="button" value="添加" name="button">
							<INPUT class="bnt_Del fl" style="width:50px; display:inline-table;" title="清空" onClick="clear_double('Leader1Id','txtLeader1Name')" type="button" value="清空" name="button"><br />本栏目选填
                        </td>
                    </tr>
                    <tr>
                        <td class="ta_bg" nowrap="nowrap">上级分管领导：
                        </td>
                        <td class="ta_txt">
                            <asp:TextBox ID="txtLeader2Name" runat="server" Columns="35" CssClass="BigStatic fl"
                                MaxLength="50"></asp:TextBox>
                            <asp:HiddenField ID="Leader2Id" runat="server" />
                            <INPUT class="bnt_Add fl" style="width:50px; display:inline-table;" title="添加" onClick="user_select('Leader2Id','txtLeader2Name')" type="button" value="添加" name="button">
							<INPUT class="bnt_Del fl" style="width:50px; display:inline-table;" title="清空" onClick="clear_double('Leader2Id','txtLeader2Name')" type="button" value="清空" name="button"><br />本栏目选填
                        </td>
                    </tr>
					<TR>
						<TD class="ta_bg" noWrap>职能描述：</TD>
						<TD class="ta_txt">
							<asp:TextBox id="txtDeptFunc" runat="server" Columns="40" CssClass="BigInput" Rows="3" TextMode="MultiLine"></asp:TextBox></TD>
					</TR>
					<TR>
						<TD class="bnt_con" noWrap align="center" colSpan="2">
						    <table width="130" cellpadding="0" cellspacing="0" border="0" style="border:none;">
							  <tr>
							    <td align="left" style="border:none;"><INPUT class="BigButton" onClick="return CheckForm()" type="submit" value="新 建"></td>
								<td align="right" style="border:none;"><INPUT class="BigButton" title="返回" onClick="history.back();" type="button" value="返 回"></td>
							  </tr>
							</table>
						</TD>
					</TR>
				</TABLE>
			</asp:Panel>
			<asp:Label id="lblMessage" runat="server"></asp:Label>
            </div>
		</form>
	</body>
</HTML>
